package com.study.demo.gsbean.demo8;

/**
 * @author: elvin
 * @time: 2019-05-16 09:36
 * @desc:
 **/
public class RunMan extends AbstractRun {

    private String sex;

    public RunMan() {
        this("default-man");
    }

    public RunMan(String sex) {
        this("default-xiaoBai", sex);
    }

    public RunMan(String name, String sex) {
        super(name);
        this.sex = sex;
    }

    @Override
    public void run() {
        System.out.println(sex +" in runMan run...");

        super.run();
    }

    @Override
    public void drink() {
        System.out.println(sex +" in runMan drink...");
    }

    @Override
    public void takeAShower(){
        System.out.println(sex +" in runMan take a shower...");
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
